package com.event.management.frontend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.event.management.frontend.domain.Ticket;
import com.event.management.frontend.dto.TicketTypeDTO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 票种Mapper接口
 */
@Mapper
public interface TicketMapper extends BaseMapper<Ticket> {

    /**
     * 查询活动下的票种列表
     *
     * @param eventId 活动ID
     * @return 票种列表
     */
    List<TicketTypeDTO> selectTicketsByEventId(@Param("eventId") Long eventId);
} 